package com.gwgreenway.order;

import com.gwgreenway.order.common.utils.RedisTxUtil;
import com.gwgreenway.order.common.utils.RedisUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableSwagger2
@MapperScan("com.gwgreenway.order.order")
@EnableTransactionManagement
@EnableAspectJAutoProxy(proxyTargetClass = true)
@Import({RedisUtil.class, RedisTxUtil.class})
public class OrderSdkApplication {

	@Autowired
	RedisTemplate redisTemplate;
	public static void main(String[] args) {
		SpringApplication.run(OrderSdkApplication.class, args);
	}
}
